package com.sitech.ibnms.util.upload;

public interface FTPIF {
	public void login(String host, String username, String password)
			throws Exception;

	public void logout() throws Exception;

	/***************************************************************************
	 * 上传文件
	 * 
	 * @param toRfileName
	 *            上传的新文件名
	 * @param uploadFile
	 *            要上传的文件
	 * @param sftp
	 **************************************************************************/
	public boolean store(String uploadFile, String toRfileName)
			throws Exception;
	/**
	 * ***********************************************************
	 * download file
	 * @param downloadFile  the file wait to be downloaded
	 * @param toLFileName   the local file to be stored the file
	 * @return
	 * @throws Exception
	 * ***********************************************************
	 */
	public boolean get(String downloadFile, String toLFileName)throws Exception;
}
